﻿<%@ Page Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="PointsRanking.aspx.cs"
    Inherits="smallDeimos.PointsRanking" Title="Small Deimos - ranking" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
        DataSourceID="SqlDataSource1" PageSize="50" Style="margin-right: 0px" Height="1136px"
        Width="400px">
        <Columns>
            <asp:BoundField DataField="PlayerName" HeaderText="Player Name" SortExpression="PlayerName" />
            <asp:BoundField DataField="Points" HeaderText="Points" ReadOnly="True" SortExpression="Points"
                ItemStyle-HorizontalAlign="Center" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:smallDeimosConnectionString %>"
        SelectCommand="SELECT     TOP (100) PERCENT PlayerName, dbo.PlayerPoints(PlayerId) AS Points
FROM         dbo.Players
WHERE     (PlayerId &gt; 1)
ORDER BY Points DESC"></asp:SqlDataSource>
</asp:Content>
